<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>relative (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">date.relative</span>
</div>

<hr/>


  <h2>Classes</h2>
   
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>



<h2>Enumerations</h2>






<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.date.relative.Unit"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">Unit</span>
        : 
     </div>


     <div class="entryOverview">
       Enumeration used to identify time units internally.

     </div>

     <div class="entryDetails">
       <div class="detailsSection">
          <b>Constants:</b>
          <table class="horiz-rule">
            <tbody>
              <tr><td>
                <span class="entryName">
                  DAYS
                </span>
                <div class="entryOverview">
                  <span class='nodesc'>No description.</span>
                </div>
             </td></tr>
              <tr><td>
                <span class="entryName">
                  HOURS
                </span>
                <div class="entryOverview">
                  <span class='nodesc'>No description.</span>
                </div>
             </td></tr>
              <tr><td>
                <span class="entryName">
                  MINUTES
                </span>
                <div class="entryOverview">
                  <span class='nodesc'>No description.</span>
                </div>
             </td></tr>
           </tbody>
         </table>
       </div>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line52">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>




  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.format"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">format<span class="args">(<span class="arg">dateMs</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Accepts a timestamp in milliseconds and outputs a relative time in the form
of "1 hour ago", "1 day ago", "in 1 hour", "in 2 days" etc.  If the date
delta is over 2 weeks, then the output string will be empty.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">dateMs</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">Date in milliseconds.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The formatted date.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line160">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.formatDay"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">formatDay<span class="args">(<span class="arg">dateMs</span>,&nbsp;<span class="arg">opt_formatter</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Accepts a timestamp in milliseconds and outputs a relative day. i.e. "Today",
"Yesterday", "Tomorrow", or "Sept 15".


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">dateMs</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">Date in milliseconds.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_formatter</span>
        : <span class="type">function(!Date):string=</span>
        <div class="entryOverview">Formatter for the date.
    Defaults to form 'MMM dd'.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The formatted date.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line244">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.formatFullDate_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">formatFullDate_<span class="args">(<span class="arg">date</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Returns a date in full date format, e.g. Tuesday, March 24, 2009.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">date</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date">Date</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_date_DateTime.html">goog.date.DateTime</a></span>
        <div class="entryOverview">The date object.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The formatted string.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line144">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.formatMonth_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">formatMonth_<span class="args">(<span class="arg">date</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Returns a date in month format, e.g. Mar 15.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">date</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date">Date</a></span>
        <div class="entryOverview">The date object.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The formatted string.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line114">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.formatPast"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">formatPast<span class="args">(<span class="arg">dateMs</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Accepts a timestamp in milliseconds and outputs a relative time in the form
of "1 hour ago", "1 day ago".  All future times will be returned as 0 minutes
ago.

This is provided for compatibility with users of the previous incarnation of
the above  method who relied on it protecting against
future dates.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">dateMs</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">Date in milliseconds.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The formatted date.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line226">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.formatShortTime_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">formatShortTime_<span class="args">(<span class="arg">date</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Returns a date in short-time format, e.g. 2:50 PM.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">date</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date">Date</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_date_DateTime.html">goog.date.DateTime</a></span>
        <div class="entryOverview">The date object.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The formatted string.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line129">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.formatTimeDelta_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">formatTimeDelta_<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Handles formatting of time deltas.

     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line93">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.getDateString"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">getDateString<span class="args">(<span class="arg">date</span>,&nbsp;<span class="arg">opt_shortTimeMsg</span>,&nbsp;<span class="arg">opt_fullDateMsg</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Formats a date, adding the relative date in parenthesis.  If the date is less
than 24 hours then the time will be printed, otherwise the full-date will be
used.  Examples:
  2:20 PM (1 minute ago)
  Monday, February 27, 2009 (4 days ago)
  Tuesday, March 20, 2005    // Too long ago for a relative date.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">date</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date">Date</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_date_DateTime.html">goog.date.DateTime</a></span>
        <div class="entryOverview">A date object.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_shortTimeMsg</span>
        : <span class="type">string=</span>
        <div class="entryOverview">An optional short time message can be
    provided if available, so that it's not recalculated in this function.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_fullDateMsg</span>
        : <span class="type">string=</span>
        <div class="entryOverview">An optional date message can be
    provided if available, so that it's not recalculated in this function.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The date string in the above form.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line295">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.getDateString_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">getDateString_<span class="args">(<span class="arg">date</span>,&nbsp;<span class="arg">relativeFormatter</span>,&nbsp;<span class="arg">opt_shortTimeMsg</span>,&nbsp;<span class="arg">opt_fullDateMsg</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Formats a date, adding the relative date in parenthesis.  If the date is less
than 24 hours then the time will be printed, otherwise the full-date will be
used.  Examples:
  2:20 PM (1 minute ago)
  Monday, February 27, 2009 (4 days ago)
  Tuesday, March 20, 2005    // Too long ago for a relative date.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">date</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date">Date</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_date_DateTime.html">goog.date.DateTime</a></span>
        <div class="entryOverview">A date object.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">relativeFormatter</span>
        : <span class="type">function(number) : string</span>
        <div class="entryOverview">Function to use when
    formatting the relative date.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_shortTimeMsg</span>
        : <span class="type">string=</span>
        <div class="entryOverview">An optional short time message can be
    provided if available, so that it's not recalculated in this function.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_fullDateMsg</span>
        : <span class="type">string=</span>
        <div class="entryOverview">An optional date message can be
    provided if available, so that it's not recalculated in this function.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The date string in the above form.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line343">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.getMessage_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">getMessage_<span class="args">(<span class="arg">delta</span>,&nbsp;<span class="arg">future</span>,&nbsp;<span class="arg">unit</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Gets a localized relative date string for a given delta and unit.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">delta</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">Number of minutes/hours/days.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">future</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
        <div class="entryOverview">Whether the delta is in the future.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">unit</span>
        : <span class="type">goog.date.relative.Unit</span>
        <div class="entryOverview">The units the delta is in.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The message.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line380">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.getPastDateString"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">getPastDateString<span class="args">(<span class="arg">date</span>,&nbsp;<span class="arg">opt_shortTimeMsg</span>,&nbsp;<span class="arg">opt_fullDateMsg</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
      </div>


     <div class="entryOverview">
       Formats a date, adding the relative date in parenthesis.   Functions the same
as #getDateString but ensures that the date is always seen to be in the past.
If the date is in the future, it will be shown as 0 minutes ago.

This is provided for compatibility with users of the previous incarnation of
the above  method who relied on it protecting against
future dates.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">date</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Date">Date</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_date_DateTime.html">goog.date.DateTime</a></span>
        <div class="entryOverview">A date object.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_shortTimeMsg</span>
        : <span class="type">string=</span>
        <div class="entryOverview">An optional short time message can be
    provided if available, so that it's not recalculated in this function.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_fullDateMsg</span>
        : <span class="type">string=</span>
        <div class="entryOverview">An optional date message can be
    provided if available, so that it's not recalculated in this function.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&nbsp;
            The date string in the above form.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line318">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.date.relative.setTimeDeltaFormatter"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">setTimeDeltaFormatter<span class="args">(<span class="arg">formatter</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets a different formatting function for time deltas ("3 days ago").
While its visibility is public, this function is Closure-internal and should
not be used in application code.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">formatter</span>
        : <span class="type">goog.date.relative.TimeDeltaFormatter</span>
        <div class="entryOverview">The function to use
    for formatting time deltas (i.e. relative times).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line103">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>



  <h2>Global Properties</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.date.relative.DAY_MS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">DAY_MS_</span>
        : 
     </div>


     <div class="entryOverview">
       Number of milliseconds in a day.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line45">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.date.relative.MINUTE_MS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">MINUTE_MS_</span>
        : 
     </div>


     <div class="entryOverview">
       Number of milliseconds in a minute.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line37">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.date.relative.TimeDeltaFormatter"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">TimeDeltaFormatter</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line86">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.date.relative.fullDateFormatter_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">fullDateFormatter_</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeFormat.html">goog.i18n.DateTimeFormat</a></span>
     </div>


     <div class="entryOverview">
       Full date formatter.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line64">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.date.relative.monthDateFormatter_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">monthDateFormatter_</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeFormat.html">goog.i18n.DateTimeFormat</a></span>
     </div>


     <div class="entryOverview">
       Month-date formatter.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line80">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.date.relative.shortTimeFormatter_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.date.relative.</span><span class="entryName">shortTimeFormatter_</span>
        : <span class="type"><a href="class_goog_i18n_DateTimeFormat.html">goog.i18n.DateTimeFormat</a></span>
     </div>


     <div class="entryOverview">
       Short time formatter.

     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_date_relative.js.source.html#line72">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package date</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="date.relative"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
